#-*-coding: utf-8-*-

# Version: 0.1
# Author: Don Li <iedon@126.com>
# License: Copyright(c) 2017 Don.Li
# Summary:

import sys
from os.path import abspath, dirname, join

_argv = sys.argv
_run_with_src = (len(_argv) > 0) and (_argv[0].rfind('.py') >= 0)

_curr_path = abspath(dirname(__file__))

if _run_with_src:
    sys.path.append(join(_curr_path, '../lib'))
else:
    _path, _psvr = _curr_path.rsplit('/', 1)
    sys.path.append(''.join((_path, '/', 'lib.psvr')))
